package org.lys.jdbc;

import java.sql.DatabaseMetaData;
import java.sql.SQLException;

/**
 * @Description:数据库的元数据信息
 * @Copyright: 福州骏华信息有限公司 (c)2013
 * @Created Date : 2013-4-4
 * @Author lys
 */
public class DBMD {

	/**
	 * @param args
	 * @throws SQLException
	 */
	public static void main(String[] args) throws SQLException {
		java.sql.Connection conn = JdbcUtils.getConnection();
		DatabaseMetaData dbmd = conn.getMetaData();
		System.out.println("db name: " + dbmd.getDatabaseProductName());
		System.out.println("tx: " + dbmd.supportsTransactions());
		conn.close();
	}

}
